package cn.iocoder.yudao.hires.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.*;


@Schema(description = "管理后台 - 行政区划新增/修改 Request VO")
@Data
public class DictCitySaveReqVO {

    @Schema(description = "地址编码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String nodeCode;

    @Schema(description = "地区名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "地区名称不能为空")
    private String nodeName;

    @Schema(description = "父级编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "父级编码不能为空")
    private String codeParent;

    @Schema(description = "0全国、1省、2市区、3郊县、4街道、5居委会", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "0全国、1省、2市区、3郊县、4街道、5居委会不能为空")
    private Short nodeLevel;
}